package com.morlia.controller;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.morlia.service.HelloService;

public class Hello {
	
	@SuppressWarnings("resource")
	public static void main(String[] args) {
		BeanFactory factory = new ClassPathXmlApplicationContext("conf/hello.xml");
		HelloService service = (HelloService) factory.getBean("helloService");
		service.sayHello();
	}
}
